/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. 
 */
package com.icinfo.cloud.provider.punish.config.controller;

import com.icinfo.cloud.provider.punish.config.dto.ConfigOrgDecideBasisInfoDto;
import com.icinfo.cloud.provider.punish.config.service.IConfigOrgDecideBasisInfoService;
import com.icinfo.framework.common.web.Result;
import com.icinfo.framework.core.web.BaseController;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 【V1.3.1】描述: 机构判定依据配置前端控制器
 *
 * @author framework generator
 * @date 2022年07月08日
 */
@RestController
@RequestMapping("/punish/config/decideBasis")
@Slf4j
public class ConfigOrgDecideBasisInfoController extends BaseController {

    @Resource
    private IConfigOrgDecideBasisInfoService configOrgDecideBasisInfoService;

    /**
     * 【V1.3.1】描述：保存部门判定依据配置信息
     *
     * @author: zhengqiang
     * @date: 2022/7/8
     * @param: saveDto
     * @return {@link Result< String>}
     **/
    @PostMapping("/saveDeptDecideBasisConfigInfo")
    @ApiOperation(value = "【V1.3.1】描述：保存部门判定依据配置信息", httpMethod = "POST")
    public Result<String> saveDeptDecideBasisConfigInfo(@RequestBody @Validated ConfigOrgDecideBasisInfoDto saveDto) {
        return configOrgDecideBasisInfoService.saveDeptDecideBasisConfigInfo(saveDto);
    }
}